package com.cy.pj.goods.pojo;

import lombok.*;

import java.sql.Timestamp;
import java.util.Date;
@Setter
@Getter
@ToString
@EqualsAndHashCode
//@NoArgsConstructor//无参构造函数
//@AllArgsConstructor//有参构造函数
@Data//胡姐描述类时，在编译的时会为此类生成set，get，toString，hashCode，equals等方法
public class Goods {//此类在编译成.class文件时，lombok会执行字节码操作
    public Goods(){}
    public Goods(Integer id, String name, String remark, Timestamp createdTime) {
        this.id = id;
        this.name = name;
        this.remark = remark;
        this.createdTime = createdTime;
    }

    private Integer id;
    private String name;
    private String remark;

    private Timestamp createdTime;
    //art+enter 引入类
    //art+insert 添加方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Timestamp createdTime) {
        this.createdTime = createdTime;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", remark='" + remark + '\'' +
                ", createdTime=" + createdTime +
                '}';
    }
}
